package com.cjy.runnable.demo8;

/**
 * @author Cheng JiYe
 * @description:
 * @date 2021/4/25 1:12
 */
public class ThreadYieldDemo {
  public static void main(String[] args) {
    // 实例化MyThread对象
    MyThread my = new MyThread();
    Thread t1 = new Thread(my, "线程A");
    Thread t2 = new Thread(my, "线程B");
    t1.start();
    t2.start();
  }
}
